package com.video.controller;

import com.video.common.lang.Result;
import com.video.entity.Platform;
import com.video.service.PlatformService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/platform")
public class PlatformController {

    @Resource
    private PlatformService platformService;

    @GetMapping("/list")
    public Result industryList() {
        List<Platform> platformList = platformService.list();
        return Result.success(200, "操作成功", platformList);
    }

}
